package br.org.etec.dotcao.service;

import br.org.etec.dotcao.exception.InvalidCredentialException;
import br.org.etec.dotcao.model.OauthInfo;
import br.org.etec.dotcao.model.User;

public interface UserService extends Service<User> {
	
	User authenticate(String username, String password) throws InvalidCredentialException;
	
	User authenticate(OauthInfo oauth) throws InvalidCredentialException;
	
	User getByEmail(String email);

}
